export type DutyModel = {
  id: string | number //id
  totalCount: number //列表个数
  list: any //列表
  fileList: any //附件列表
  entityId: string //流程id
  workFlowList: any
  children: any
  dailyDuties: any
  userName: any
}

const api: ApiConfig = {
  // 我的值班列表
  dutyList: {
    method: 'GET',
    url: '/oa/duty/duty/list'
  },
  // 出勤退勤
  dutyAttendance: {
    method: 'POST',
    url: '/oa/duty/dutyAttendance/update'
  },
  // 补签列表
  dutySupplement: {
    method: 'GET',
    url: '/oa/duty/dutySupplement/list'
  },
  // 补签-新增
  dutyAdd: {
    method: 'POST',
    url: '/oa/duty/dutySupplement/save'
  },
  // 补签-修改
  dutyUpdate: {
    method: 'POST',
    url: '/oa/duty/dutySupplement/update'
  },
  // 补签-详情
  dutyInfo: {
    method: 'GET',
    url: '/oa/duty/dutySupplement/info/:id'
  },
  // 值班排班
  dutySchedule: {
    method: 'POST',
    url: '/oa/duty/duty/dutySchedule'
  },
  // 值班排班-删除
  dutyDelete: {
    method: 'POST',
    url: '/oa/duty/duty/delete'
  },
  // 值班排班-新增
  dutySave: {
    method: 'POST',
    url: '/oa/duty/duty/save'
  },
  // 值班排班-修改
  workDutyUpdate: {
    method: 'POST',
    url: '/oa/duty/duty/update'
  },
  // 值班排班-详情
  workDutyInfo: {
    method: 'GET',
    url: '/oa/duty/duty/info/:id'
  }
}

export default api
